﻿namespace EasyGo.Logic
{
    using System.Linq;

    public interface IRepository<T> where T : Entity
    {
        void Create(T entity);

        void Update(T entity);

        T Load(int id);

        IQueryable<T> GetAll();

        void Delete(T entity);

        void SaveChanges();
    }
}
